package custom;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

import custom.Activity;
import custom.QuizDBC;
import java.util.Date;

public class Activity1 implements Activity {

	private int userId, quizId, score;
	private Date date;

	public Activity1(int userId, int quizId, int score, Date date) {
		this.userId = userId;
		this.quizId = quizId;
		this.score = score;
		this.date = date;
	}

	public static void registerActivity(int userId, int quizId, int score)
			throws SQLException, ClassNotFoundException {
		QuizDBC.getInstance().insertIntoActivity1(quizId, userId, score);
	}

	@Override
	public Date getDate() {
		return date;
	}

	@Override
	public String getHtml() {
		// TODO Auto-generated method stub
		return null;
	}

}